package com.aleaho.cftrack.model;

import com.aleaho.cftrack.CFTrackApplication;
import com.baidu.trace.Trace;
import com.baidu.trace.api.entity.EntityListRequest;
import com.baidu.trace.api.entity.OnEntityListener;
import com.baidu.trace.api.track.LatestPointRequest;
import com.baidu.trace.api.track.OnTrackListener;

import java.util.List;

/**
 * @author Aleaho
 * @version 1.0
 * @date 2017/11/2
 * @desc
 */

public interface LocationModel {


    /**
     *
     * @param application
     * @param onEntityListener
     */
    void queryEntityList(CFTrackApplication application, List<String> entities, long activeTime, int pageIndex, OnEntityListener onEntityListener);

    /**
     *
     * @param application
     * @param entity
     * @param onTrackListener
     */
    void queryLatestPoint(CFTrackApplication application, String entity, OnTrackListener onTrackListener);

}
